//////////////////////////////////////////////////////////////////////////////////
//
//	r_decals
//		- Version 1.0
//		- 03.18.2006
//		- diamond-optic
//
//////////////////////////////////////////////////////////////////////////////////
//
// Information:
//
// - Clients r_decals value is set to
//   whatever value sv_r_decals is set to.
//
// Credit:
//
// - Anonymous for the method (cl_dlmax.sma)
//
// Changelog:
//
// - 03.18.2006 Version 1.0
//	Initial release
//
//////////////////////////////////////////////////////////////////////////////////

#include <amxmodx>

new p_sv_r_decals

public plugin_init()
{
	register_plugin("r_decals","1.0","diamond-optic")
	
	register_cvar("r_decals_stats", "1.0", FCVAR_SERVER|FCVAR_SPONLY)
	
	p_sv_r_decals = register_cvar("sv_r_decals","420")
}
public client_connect(id)
{
	client_cmd(id,"r_decals %d", get_pcvar_num(p_sv_r_decals))
}
public client_authorized(id)
{
	client_cmd(id,"r_decals %d", get_pcvar_num(p_sv_r_decals))
}
